URL to the remote data source.

<div class="definition">
    String or Object, default = ''
</div>

If the <span class="method">.url</span> property is defined, then every time the grid needs to refresh, search, or sort records,
they will be pulled from the <span class="method">.url</span>. If grid needs to save the records, new changes will be submitted to
this <span class="method">.url</span> as well.
<div style="height: 10px"></div>

The <span class="method">.url</span> property can also be an object that defines different URL for get, save, and remove:
<textarea class="javascript">
url: {
    get: 'server/side/path/to/records',
    save: 'server/side/path/to/save',
    remove: 'server/side/path/to/remove'
}
</textarea>
<div style="height: 10px"></div>

See also <a class="argument" href="w2form.dataType">.dataType</a> property to control how data will be passed to the server.
<div style="height: 10px"></div>

URL can be defined during object creation:
<textarea class="javascript">
let grid = new w2grid({
    name: 'grid',
    url: 'server/side/path/to/records',
    columns: [
        { field: 'recid', text: 'ID', size: '50px' },
        { field: 'lname', text: 'Last Name', size: '30%' },
        { field: 'fname', text: 'First Name', size: '30%' },
        { field: 'email', text: 'Email', size: '40%' },
        { field: 'sdate', text: 'Start Date', size: '120px' },
        { field: 'sdate', text: 'End Date', size: '120px' }
    ]
});
</textarea>

You may define different URLs for different operations (get records, delete records, save records)
<textarea class="javascript">
let grid = new w2grid({
    name: 'grid',
    url: {
        get: 'server/side/path/to/records',
        save: 'server/side/path/to/save',
        remove: 'server/side/path/to/remove'
    },
    columns: [
        { field: 'recid', text: 'ID', size: '50px' },
        { field: 'lname', text: 'Last Name', size: '30%' },
        { field: 'fname', text: 'First Name', size: '30%' },
        { field: 'email', text: 'Email', size: '40%' },
        { field: 'sdate', text: 'Start Date', size: '120px' },
        { field: 'sdate', text: 'End Date', size: '120px' }
    ]
});
</textarea>

URL can be defined during run-time:
<textarea class="javascript">
grid.url = 'server/side/path/to/records';
grid.reload();
</textarea>

If you do not specify any <span class="method">.url</span>, then the assumed data source is local. You can add/remove records, user can search
and sort records and all actions will be performed locally. You can optionally use <a class="argument" href="w2grid.load">.load()</a> method to load records from the server without switching grid to remote data source.
<div style="height: 10px"></div>

See <a href="grid/overview#data-structures">grid overview</a> page for data structured passed to and from server side url.